package main

import "fmt"

type Person struct {
	name string
	sex  byte
	age  int
}

func main() {
	man := Person{"rose", 'f', 18}
	var p *Person
	p = &man
	fmt.Println(man)
	update(p)
	fmt.Println(man)
}
func update(p *Person) {
	p.name = "zs"
	p.sex = 'm'
}
